#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_Button_light_clicked()
{
    this->setStyleSheet("background-color:#f3f3f3");
    ui->lineEdit->setStyleSheet("backgroud-color:#fff;color:#000;");
    ui->Button_light->setStyleSheet("color:#000");
    ui->Button_dark->setStyleSheet("color:#000");
}

void Widget::on_Button_dark_clicked()
{
    this->setStyleSheet("background-color:#333");
    ui->Button_light->setStyleSheet("color:#fff");
    ui->Button_dark->setStyleSheet("color:#fff");
    ui->lineEdit->setStyleSheet("background-color:#333;color:#fff");

}
